package sensitivity;

import javax.swing.JOptionPane;

import cpasl.CpaslFrame;

public class Sensitivity {

	public static void main(String[] args) {
		String inputValue = JOptionPane.showInputDialog("Please input participant number");
		if (inputValue != null) {
			try {
				int participantNumber = Integer.valueOf(inputValue);
				SensitivityFrame frame = new SensitivityFrame(participantNumber);
				frame.setVisible(true);
			}
			catch (NumberFormatException nfe) {
				JOptionPane.showMessageDialog(null, "Participant number must be a number.", "EXITING", JOptionPane.ERROR_MESSAGE);
			}
		}
	}

}
